package cn.xopencode.userservice.rpc.matter.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 创建重大事项时用的DTO
 *
 * @Author xiaodawei
 * @since 2021/9/22
 */
@Data
@Accessors(chain = true)
@ApiModel("创建重大事项")
public class CreateMatterDTO implements Serializable {

    /**
     * 事项说明
     */
    @NotBlank(message = "事项说明不能为空")
    @ApiModelProperty(value = "事项说明", required = true)
    private String description;

    /**
     * 当前登陆用户的ID
     */
    @ApiModelProperty(value = "当前登陆用户的ID",hidden = true)
    private String userId;

    @NotNull
    @ApiModelProperty(value = "重大事件日期", required = true)
    private Date matterDate;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;


}
